home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5918 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: Inter.NL.net!usenet
  2. From: Auke.Reitsma@net.HCC.nl (Auke Reitsma)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: File Based linked list
  5. Date: Tue, 20 Feb 1996 20:23:45 GMT
  6. Organization: Inter.NL.net, The Internet Provider in The Netherlands.
  7. Message-ID: <4gdasd$bhv@altrade.nijmegen.inter.nl.net>
  8. References: <Pine.SOL.3.90.960219171637.21117B-100000@eddie>
  9. Reply-To: Auke.Reitsma@net.HCC.nl
  10. NNTP-Posting-Host: rt99-20.rotterdam.nl.net
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. Khan Riaz Ahmad <a228khao@cdf.toronto.edu> wrote:
  14.  
  15. >     Anyone know how to write a file based linked list... How 
  16. > different is it to implement then a regular memory based linked list?? 
  17. > Any source code would be greatly appriciated... BTW I am a student and I 
  18. > need it for an assignment...
  19.  
  20. As this is for an assignment I'll reply with some questions. ;-)
  21.  
  22. 1  You know how to make a linked list in memory with malloc and pointer?
  23. 2  What is the equal in the concepts of: 
  24.    - a pointer 
  25.    - an offset in a file?
  26.  
  27. Alternatively:
  28.  
  29. 3  You know how to make an array based linked list in memory?
  30. 4  What is equal in the concepts of:
  31.    - an array element in memory
  32.    - a record in a file?
  33.  
  34. Answering correctly either pair of questions might lead you to useful
  35. results.
  36.  
  37.  
  38. Greetings from Delft, The Netherlands.
  39.  
  40. Auke Reitsma
  41.  
  42.